home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccaaaattttggggeeeettttmmmmssssgggg((((3333CCCC)))) ccccaaaattttggggeeeettttmmmmssssgggg((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- catgetmsg - reads a message from a message catalog
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_nnnn_llll______tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
-
- _cccc_hhhh_aaaa_rrrr _****_cccc_aaaa_tttt_gggg_eeee_tttt_mmmm_ssss_gggg (_nnnn_llll______cccc_aaaa_tttt_dddd _c_a_t_d_,,,, _iiii_nnnn_tttt _s_e_t__n_u_m_,,,, _iiii_nnnn_tttt _m_s_g__n_u_m_,,,, _cccc_hhhh_aaaa_rrrr _((((_****_b_u_f_,,,, _iiii_nnnn_tttt _b_u_f_l_e_n_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _cccc_aaaa_tttt_gggg_eeee_tttt_mmmm_ssss_gggg function returns the requested message string. The message
- string is placed in the user-supplied buffer (pointed to by _b_u_f) and
- terminated with a null byte. If the message is longer than _b_u_f_l_e_n bytes,
- it is truncated with a null byte.
-
- The _c_a_t_d argument is a catalog descriptor returned from an earlier call
- to _cccc_aaaa_tttt_oooo_pppp_eeee_nnnn(3C); it identifies the message catalog that contains the
- message identified by the message set (_s_e_t__n_u_m) and the message number
- (_m_s_g__n_u_m).
-
- The _s_e_t__n_u_m and _m_s_g__n_u_m arguments are defined as integer values for
- maximum portability. However, it is recommended that programmers use
- symbolic names for message and set numbers wherever possible, rather than
- having integer values hard-coded into their source programs. The
- _NNNN_LLLL______MMMM_SSSS_GGGG_SSSS_EEEE_TTTT macro in the _nnnn_llll______tttt_yyyy_pppp_eeee_ssss_...._hhhh file must be passed as the _s_e_t__n_u_m
- argument.
-
- NNNNOOOOTTTTEEEESSSS
- You can use the _cccc_aaaa_tttt_gggg_eeee_tttt_mmmm_ssss_gggg and _cccc_aaaa_tttt_gggg_eeee_tttt_ssss(3C) functions to retrieve messages
- from a message catalog. _cccc_aaaa_tttt_gggg_eeee_tttt_mmmm_ssss_gggg and _cccc_aaaa_tttt_gggg_eeee_tttt_ssss have comparable
- performance.
-
- Specifically, _cccc_aaaa_tttt_gggg_eeee_tttt_mmmm_ssss_gggg minimizes memory usage at the expense of more
- frequent disk accesses. The _cccc_aaaa_tttt_gggg_eeee_tttt_ssss(3C) function minimizes disk accesses
- at the expense of more memory usage. If it is important to your
- application to minimize usage of one of these resources, use the
- corresponding function.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
- If successful, _cccc_aaaa_tttt_gggg_eeee_tttt_mmmm_ssss_gggg returns a pointer to the message string in _b_u_f.
-
- If _cccc_aaaa_tttt_gggg_eeee_tttt_mmmm_ssss_gggg is unsuccessful because the message catalog identified by
- _c_a_t_d is not currently available, or the requested message is not in the
- message catalog, a pointer to a null ("") string is returned.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- caterr(1), explain(1), gencat(1), catgets(3C), catmsgfmt(3C),
- catopen(3C), nl_types(5).
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-